﻿using System.Collections.Generic;
using InterfaceLiftLib.Converters.Json;
using InterfaceLiftLib.Models.Enums;
using Newtonsoft.Json;

namespace InterfaceLiftLib.Models
{
    public class Tag
    {
        [JsonProperty("id")]
        public int Id { get; protected set; }

        [JsonProperty("tag_name")]
        public string Name { get; protected set; }

        [JsonProperty("type")]
        [JsonConverter(typeof(TagTypeConverter))]
        public TagType Type { get; protected set; }

        [JsonProperty("related_searches")]
        public IEnumerable<string> RelatedSearches { get; protected set; }
    }
}
